package com.sitech.portal.server.dao;


import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;

import java.util.HashMap;
import java.util.List;

public interface INewsDao {

    public IPage selectNewsList(HashMap map ,PageForm pageForm);
    public IPage selectHisNewsList(HashMap map ,PageForm pageForm);


    public HashMap selectNews(String id);
    public void insertNews(HashMap news);
    public void insertNewsDept(String newsid,String deptid);
    public void insertNewsFile(String newsid,String fileid);
    public void deleteNews(String id);
    public void updateNewsStatus(String id,String loginid);
    public void deleteNewsDept(String id);
    public void deleteNewsUser(String id);
    public void insertNewsDeptUser(String newsid, String deptid);
    public void insertNewsUser(String newsid, String userid);


    public List selectUnReadNews(String userid);

    public void updateReadNews(String newsid,String loginid);
    public void saveNewsFileDb(HashMap map);
    public void deleteNewsFileRel(String newsid, String fileid);

    public void updatePopNewsStatus(String userid,String id);
    public boolean canBeModify(String newsid);

}
